package com.wei;

import com.spring.WeiApplicationContext;
import com.spring.config.AppConfig;
import com.wei.service.UserService;

public class WeiTest {
    public static void main(String[] args) {
        WeiApplicationContext context = new WeiApplicationContext(AppConfig.class);
        UserService userService = (UserService) context.getBean("userService");
        userService.test();
//        System.out.println(userService);
//        System.out.println(context.getBean("itemService"));
        System.out.println(context.getBean("itemService"));
        System.out.println(context.getBean("itemService"));
        System.out.println(context.getBean("orderService"));
        System.out.println(context.getBean("orderService"));
        System.out.println(context.getBean("orderService"));
    }
}
